//挂单表
import 'package:objectbox/objectbox.dart';

import 'package:flutter_deer/dl/dl.dart';
import 'package:flutter_deer/objectbox.g.dart';
import 'package:flutter_deer/database/database_manager.dart';

// part 'pending_order_bean.g.dart';

@Entity()
class PendingOrderBean {
  @Id() // 自增主键
  int id = 0;

  // 挂单时间
  String createTime = ''; //Utils.getCurrentTime();

  String oilList = '';

  String goodsList = '';

  String descMny = '';

  String descShop = '';

  String descOil = '';

  String phone = '';

  /// 入库
  void save() {
    final store = getIt<ObjectIdBox>().store;
    final box = store.box<PendingOrderBean>();
    box.put(this);
  }
}
